<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.2"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>miniFOC: config.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="Acme_LOGO.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">miniFOC<span id="projectnumber">&#160;1.0.2</span>
   </div>
   <div id="projectbrief">This open-source project aims to accomplish a FOC(Field Oriented Control) scheme that is operatable with minimum costs in China.</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.2 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search",'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle"><div class="title">config.h</div></div>
</div><!--header-->
<div class="contents">
<a href="config_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span><span class="comment">/**************************************************************************/</span></div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno">    9</span><span class="preprocessor">#ifndef MINIFOC__CONFIG_H_</span></div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno">   10</span><span class="preprocessor">#define MINIFOC__CONFIG_H_</span></div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno">   11</span> </div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"><a class="line" href="config_8h.html#ad3d3342321e5502fa12f14a719ce48ec">   13</a></span><span class="preprocessor">#define VBUS            8.4f</span></div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"><a class="line" href="config_8h.html#a9be884f546a1b98b40f8cb7971e88bfd">   15</a></span><span class="preprocessor">#define POLAR_PAIRS     7</span></div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"><a class="line" href="config_8h.html#a922433e3d0d117291cc2725164f21718">   17</a></span><span class="preprocessor">#define ENCODER_RESO    4096</span></div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"><a class="line" href="config_8h.html#a637f29a41ea0451a8567972018c095f0">   19</a></span><span class="preprocessor">#define CALI_TORQUE     0.3f</span></div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno">   20</span> </div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"><a class="line" href="config_8h.html#a2c7ed0283bd6f2f9d791860d6254ef4f">   22</a></span><span class="preprocessor">#define UART_BAUDRATE   115200</span></div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"><a class="line" href="config_8h.html#a6177eb86ee16a1956c81749e4e332cf0">   24</a></span><span class="preprocessor">#define PWM_FREQUENCY   20</span></div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"><a class="line" href="config_8h.html#abf175a4d203eb22407f26a7e09abe70e">   26</a></span><span class="preprocessor">#define TIM2_FREQUENCY  8</span></div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"><a class="line" href="config_8h.html#ae9289eb166344bb9d0d6560b6da41118">   28</a></span><span class="preprocessor">#define TIM13_FREQUENCY 100</span></div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"><a class="line" href="config_8h.html#adddd943909a2fac22c5fe8e3949d105f">   30</a></span><span class="preprocessor">#define SPEED_UP_FREQ   200</span></div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"><a class="line" href="config_8h.html#a3b13b9a69505b192a40569ac6bae91f6">   32</a></span><span class="preprocessor">#define SPI_PRESCALE    SPI_PSC_16</span></div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno">   33</span> </div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"><a class="line" href="config_8h.html#a7bb8116c0084a1decc494f532e229e1e">   35</a></span><span class="preprocessor">#define UART_PRIORITY   1</span></div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"><a class="line" href="config_8h.html#af73502ecef65b17c424513be3294841f">   37</a></span><span class="preprocessor">#define TIM2_PRIORITY   2</span></div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"><a class="line" href="config_8h.html#a5726838e06fba2bf7e5a7ebf44de9641">   39</a></span><span class="preprocessor">#define TIM13_PRIORITY  3</span></div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno">   40</span> </div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"><a class="line" href="config_8h.html#a17c58df3fba73bc0fe08b011bc3d404f">   42</a></span><span class="preprocessor">#define FMC_WRITE_START_ADDR    0x08007C00UL</span></div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno">   43</span> </div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno">   44</span><span class="preprocessor">#endif </span><span class="comment">//MINIFOC__CONFIG_H_</span></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.2
</small></address>
</body>
</html>
